#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTimer>
#include <qextserialport.h>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
private:
    Ui::MainWindow *ui;
    QTimer *timer;
    QextSerialPort *lport;
    quint8 KolResiv;
    quint8 Res[100];
    qint16 X, Y, Z, AX, AY, AZ;
    QByteArray bytes;
private slots:
    void onReadyRead();

};

#endif // MAINWINDOW_H
